# 交集
s1 = {1, 2, 3, 4}
s2 = {3, 4, 5, 6}
s3 = {"a", "b", "c"}
print(s1 & s2)  #  {3, 4}
print(s1 & s3)  # set()


# 并集
print(s1 | s2)  # {1, 2, 3, 4, 5, 6}
print(s1 | s3)  # {1, 2, 3, 4, 'c', 'b', 'a'}
print(type(s1 | s3))  # <class 'set'>
